package com.songlanyun.modules.account.model.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.songlanyun.common.drive.ValueObject;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * 用户管理的操作日志导出的VO
 *
 * @author 王熙伟(wang-xiwei@foxmail.com)
 * @since 2024-04-24
 */
@Data
public class AccountOperationLogVO  implements Serializable, ValueObject {

    private static final long serialVersionUID = 1L;

    /**
     *主键
     */
    @TableId
    private Long id;

    /**
     *操作人账号
     */
    @Excel(name = "操作人账号", orderNum = "1", width = 15D, needMerge = true)
    private Long operatorId;

    /**
     *操作人姓名
     */
    @Excel(name = "操作人姓名", orderNum = "2", width = 15D, needMerge = true)
    private String operatorName;

    /**
     *会员账号
     */
    @Excel(name = "会员账号", orderNum = "3", width = 15D, needMerge = true)
    private Long userId;

    /**
     *会员昵称
     */
    @Excel(name = "会员昵称", orderNum = "4", width = 15D, needMerge = true)
    private String userName;

    /**
     *操作
     */
    @Excel(name = "操作", orderNum = "5", width = 15D, needMerge = true)
    private String operation;

    /**
     *操作前的值
     */
    @Excel(name = "操作前的值", orderNum = "6", width = 15D, needMerge = true)
    private String oldValue;

    /**
     *操作后的值
     */
    @Excel(name = "操作后的值", orderNum = "7", width = 15D, needMerge = true)
    private String newValue;

    /**
     *操作时间
     */
    @Excel(name = "操作时间", orderNum = "8", width = 30D, needMerge = true)
    @JsonFormat(locale = "zh_CN", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     *请求参数
     */
    private String operationValue;
}
